<template>
    <div>
        <p class="p1">
            <van-icon name="arrow-left" size="20px" @click="goback" />
            <span>个人中心</span>
        </p>
        <van-button type="primary" @click="goLogin">登录</van-button>
    </div>
</template>

<script>

export default {
    data() {
        return {

        };
    },
    methods: {
        goback() {
            this.$router.go(-1)
        },
        goLogin() {
            this.$router.push('/MyLogin')
        }
    }

}

</script>
<style scoped>
.p1 {
    width: 100%;
    height: 60px;
    background-color: #fff;
    position: relative;
    top: -16px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

span {
    margin: 0 auto;
    font-size: 20px;
}
</style>